package net.huashitong.scheduling.service;

import com.sirdc.modules.core.dao.BaseDao;
import com.sirdc.modules.sys.base.StringPKService;
import net.huashitong.scheduling.dao.TownRankDetailDao;
import net.huashitong.scheduling.dao.TownRankListDao;
import net.huashitong.scheduling.entity.TownRankDetail;
import net.huashitong.scheduling.entity.TownRankList;
import net.huashitong.scheduling.filter.ProjectReserveFilter;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class TownRankDetailService  extends StringPKService<TownRankDetail> {

    @Autowired
        private TownRankDetailDao dao;

    @Override
    protected BaseDao<TownRankDetail, String> getDao(){
        // TODO Auto-generated method stub;
        return dao;
    }

    public List<TownRankDetail> queryByFilterAndStudentId(ProjectReserveFilter filter){
        return dao.queryByfilterAndStudentId(filter);
    }
}
